﻿using System;

namespace Library.Gsm.AtCommands {
  public class ImeiCommand : BaseAtCommand {
    protected override string GetCommandText(params object[] t) {
      return "AT+WIMEI?";
    }

    protected override bool AddLine(OneLineStringCollection lines, string line) {
      if (String.IsNullOrEmpty(line)) return false;
      if (line == UserCommandText) return false;
      if (line.StartsWith("+WIMEI:")) {
        lines.Add(line.Substring(7).Trim());
        return true;
      }
      lines.Add(line.Trim());
      return true;
    }
  }
}
